package com.sf.hackathons.app.helper;


import com.sf.hackathons.app.constants.HttpConstants;
import com.sf.hackathons.lib.http.BaseHttpHelper;

import java.util.HashMap;

/**
 * Created by guofanghua on 2017/9/26.
 */
public class LoginHelper extends BaseHttpHelper {


    public String mUserName = "";
    public String mMykey = "";

    @Override
    public String initUrl() {
        return HttpConstants.URL_LOGIN;
    }

    @Override
    public HashMap<String, Object> initParameters() {
        HashMap<String, Object> mapParam = new HashMap<>();
        mapParam.put("userCode", mUserName);
        mapParam.put("password", mMykey);
        return mapParam;

    }

    @Override
    public String initVerCode() {
        return HttpConstants.VERSION_1;
    }
}
